package both.map.mapView;

import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class Actor {

	private String pictureURL;

	public Actor(String pictureURL) {
		this.setPictureURL(pictureURL);
	}
	
	public Actor() {
		
	}

	public void draw(Graphics g, int x, int y) {
		g.translate(x, y);
		BufferedImage img = null;
		try {
		    img = ImageIO.read(new File("knome.png"));
		} catch (IOException e) {
			e.printStackTrace();
		}
		g.drawImage(img, 0, 0, 32, 32, 0, 0, 32, 32, null);
		g.translate(-x, -y);
	}

	public void setPictureURL(String pictureURL) {
		this.pictureURL = pictureURL;
	}

	public String getPictureURL() {
		return pictureURL;
	}
}
